package net.gyapp.markim.core.reponse;

import org.jim.common.packets.Command;

/**
 * Author:  winds
 * Data:    2018/8/3
 * Version: 1.0
 * Desc:    离线消息
 */


public class OfflineMessageResponse extends ImResponse {

    public int code;
    public int command;
    public DataBean data;
    public String msg;

    @Override
    public Command getCommand() {
        return Command.valueOf(command);
    }

    public static class DataBean {
        public String friends;
        public String groups;
        public String userid;

        public DataBean(String friends, String groups, String userid) {
            this.friends = friends;
            this.groups = groups;
            this.userid = userid;
        }
    }

    @Override
    public String toString() {
        return "OfflineMessageResponse{" +
                "code=" + code +
                ", command=" + command +
                ", data=" + data +
                ", msg='" + msg + '\'' +
                '}';
    }
}
